package com.chen.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/*
* 选课信息表
* */
@Entity
@Table(name = "s_selected_course")
public class SelectedCourse implements Serializable {
    private Integer id;
    private Integer studentId;
    private Integer courseId;

    public SelectedCourse() {
    }

    public SelectedCourse(Integer id, Integer studentId, Integer courseId) {
        this.id = id;
        this.studentId = studentId;
        this.courseId = courseId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    @Override
    public String toString() {
        return "SelectedCourse{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", courseId=" + courseId +
                '}';
    }
}
